//
//  ResultViewController.m
//  CameraDemo
//
//  Created by xujiangtao on 15/11/12.
//  Copyright © 2015年 xujiangtao. All rights reserved.
//

#import "ResultViewController.h"

@interface ResultViewController ()

@end

@implementation ResultViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView* resultImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    [resultImageView setImage:self.resultImage];
    [resultImageView setContentMode:UIViewContentModeScaleAspectFit];
    [self.view addSubview:resultImageView];
    
    UIButton* backButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    backButton.frame = CGRectMake(10, 50, 100, 40);
    [backButton setTitle:@"back" forState:UIControlStateNormal];
    [backButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [self.view addSubview:backButton];
    [backButton addTarget:self action:@selector(clickBackBtn) forControlEvents:UIControlEventTouchUpInside];
}
- (void)clickBackBtn{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
